import Vue from "vue";
import VueRouter from "vue-router";
import Index from "../views/Index.vue";
import Search from '../views/Search.vue';
import MoreHot from '../views/MoreHot.vue';
import MoreNewDiscs from '../views/MoreNewDiscs.vue';

Vue.use(VueRouter);

const routes = [{
    path: "/",
    redirect: "/rotation"
}, {
    path: "/rotation",
    name: "Index",
    component: Index
}, {
    path: "/search",
    name: "Search",
    component: Search
}, {
    path: "/morehot",
    name: "MoreHot",
    component: MoreHot
}, {
    path: "/moreNewDiscs",
    name: "MoreNewDiscs",
    component: MoreNewDiscs
}];

const router = new VueRouter({
    routes,
});

export default router;